Release 0.1.14: call graph + CodeQL integration#23
Merged
Conversation
Adds a real call graph to PyApplication, with Jedi and CodeQL as collaborating backends. See CHANGELOG.md for the full feature/fix list. Highlights: - PyCallEdge schema; call_graph: List[PyCallEdge] on PyApplication - call_graph module: networkx adapters with ghost-node support for RPC / third-party / framework endpoints; jedi/codeql edge derivation; heuristic constructor fallback; provenance-aware merge - CodeQL pipeline against codeql/python-all 7.x: CLI auto-downloaded per-project, pack dependencies installed once, queries colocated in the prepared qlpack; augment_call_sites backfills resolutions - Jedi-side fixes: _call_sites now respects scope boundaries; constructor calls resolve to <class>.__init__ BREAKING: removed --analysis-level. Call graph is built unconditionally; use --codeql/--no-codeql to control CodeQL participation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
sinha108
approved these changes
May 13, 2026
rahlk
pushed a commit
that referenced
this pull request
May 14, 2026
Release 0.1.14: call graph + CodeQL integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PyApplication.call_graph: List[PyCallEdge]plus a newcodeanalyzer.semantic_analysis.call_graphmodule (networkx adapters with ghost-node support, Jedi edge derivation, heuristic constructor fallback, provenance-aware merge).codeql pack installforcodeql/python-all, query againstValue.getACall(), in-placePyCallsiteaugmentation._call_sitesno longer over-walks into nested function/class bodies; constructor calls resolve to<class>.__init__.BREAKING: removes
--analysis-level/analysis_level. Call graph is built unconditionally;--codeql / --no-codeqlcontrols CodeQL participation.Closes #22.
Test plan
uv run pytestpasses locally.codeanalyzer/(Jedi-only): 24 modules, 247 edges, 0 unresolved constructor sites, msgpack round-trip clean.test/fixtures/single_functionalities/stuff_nested_in_functions_test: CLI auto-downloaded, packs installed, query executed, 6 edges resolved (4 withprovenance=[codeql, jedi], 2 constructor edges via the fallback heuristic), 0 ghosts on this fixture.PyApplication→ msgpack →PyApplication→to_digraphpreserves nodes, edges, edge attributes, and fullPyCallablepayload on nodes.--analysis-levelremoved end-to-end: not inAnalysisOptions, not in CLI help, parses to exit code 2 when passed.Release procedure
Once merged to
main, cutv0.1.14to trigger.github/workflows/release.yml(tests → build → GitHub Release with CHANGELOG[0.1.14]excerpt → PyPI Trusted Publishing).